<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of AnimusUserComponent
 *
 * @author Animus Inc.
 */
define('DOMROOT', define(define(define(__FILE__))));

require_once DOMROOT.'/classes/abstract/Component.php';

class AnimusUserComponent {
    private $_type = "user";
    private $_request;
    private $_response;
    private $_model_view;
    
    public function service(){}
	
	public function execute(){
		$this->service();
	}
	public function populateDefaultResponse(){
		$this->_response->setValid();
		$this->_response->setView($this->_model_view->getDefaultView());
		$this->_response->setModel($this->_model_view->getModel());
		$this->_response->setSession($this->_request->getSession());
	}
	public function populateSuccessResponse(){
		$this->_response->setValid();
		$this->_response->setView($this->_model_view->getSuccessView());
		$this->_response->setModel($this->_model_view->getModel());
		$this->_response->setSession($this->_request->getSession());
	}
	public function setRequest(AnimusRequest $Request){                  
		$this ->_request = $Request;                  
		return;          
	}          
	public function setResponse(AnimusResponse $Response){                  
		$this ->_response = $Response;                  
		return;          
	}          
	public function setModelView(ModelView $_model_view){             
		$this -> _model_view = $_model_view;              
		return;          
	}          
	public function getRequest(){                  
		return $this -> _request;          
	}          
	public function getResponse(){                  
		return $this -> _response;          
	}          
	public function getModelView(){              
		return $this -> _model_view;          
	}
}

?>
